package com.ruoyi.business.mapper;

import java.util.Date;
import java.util.List;
import com.ruoyi.business.domain.EmployeeInfo;
import org.apache.ibatis.annotations.Delete;

/**
 * 员工信息Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-17
 */
public interface EmployeeInfoMapper 
{
    /**
     * 查询员工信息
     * 
     * @param id 员工信息主键
     * @return 员工信息
     */
    public EmployeeInfo selectEmployeeInfoById(Long id);

    /**
     * 查询员工信息列表
     * 
     * @param employeeInfo 员工信息
     * @return 员工信息集合
     */
    public List<EmployeeInfo> selectEmployeeInfoList(EmployeeInfo employeeInfo);

    /**
     * 新增员工信息
     * 
     * @param employeeInfo 员工信息
     * @return 结果
     */
    public int insertEmployeeInfo(EmployeeInfo employeeInfo);

    /**
     * 修改员工信息
     * 
     * @param employeeInfo 员工信息
     * @return 结果
     */
    public int updateEmployeeInfo(EmployeeInfo employeeInfo);

    /**
     * 删除员工信息
     * 
     * @param id 员工信息主键
     * @return 结果
     */
    public int deleteEmployeeInfoById(Long id);

    /**
     * 批量删除员工信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEmployeeInfoByIds(Long[] ids);

    @Delete("DELETE FROM t_employee_Info")
    void clearTable();

    @Delete("DELETE FROM t_employee_Info WHERE DATE_FORMAT(award_year, '%Y') = DATE_FORMAT(?, '%Y')")
    void clearTableYear(Date awd);
}
